/*
 * @Author: your name
 * @Date: 2020-11-10 21:40:45
 * @LastEditTime: 2021-04-01 19:39:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \cang-chu-guan-li-xi-tong\src\main.js
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "./theme/index.less";
import Antd from "ant-design-vue";
import Viser from "viser-vue";
import axios from "axios";
import BootstrapVue from 'bootstrap-vue'
// import "@/mock";
import store from "./store";
// import PouchDB from "pouchdb";
import "animate.css/source/animate.css";
import VueI18n from "vue-i18n";
import Plugins from "@/plugins";
import VueQuillEditor from "vue-quill-editor";
import "./theme/fuwenben/quill.core.css";
import "./theme/fuwenben/quill.snow.css";
import "./theme/fuwenben/quill.bubble.css";


// import vuescroll from "vuescroll";//引入vuescroll
// import "vuescroll/dist/vuescroll.css";//引入vuescroll样式
// Vue.use(vuescroll);//使用

Vue.prototype.$axios = axios; //全局注册，使用方法为:this.$axios

import { message} from 'ant-design-vue'
Vue.prototype.$message = message;



// 设置路由守卫
import "../src/permission.js";

Vue.config.productionTip = false;
Vue.use(Viser);
Vue.use(Antd);
Vue.use(BootstrapVue)
Vue.use(VueI18n);
Vue.use(Plugins);
// Vue.use(print);
Vue.use(VueQuillEditor);
const i18n = new VueI18n({
  locale: "CN",
  fallbackLocale: "US",
  silentFallbackWarn: true,
});

new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App),
  mounted() {
    // let db = new PouchDB("adminDb");
    // db.get("currUser").then((doc) => {
    //   this.$store.commit("account/setUser", doc.user);
    // });
  },
}).$mount("#app");
